<!DOCTYPE html>
<head>
<?php include_once VIEWS.'inc/head.php'; ?>
</head>

<body>
    <?php include_once VIEWS.'inc/header.php'; ?>
		<?php include_once VIEWS.'inc/right.php'; ?>
<?php if(isset($info['id'])):?>
	<div class="w1680 news-info-first shadow2">
		<div class="w1190 news-info-main">
			<div class="news-info-title"><?php echo $info['title'];?></div>
			<div class="news-info-date"><?php echo date('Y-m-d',$info['timeline']);?></div>
			<div class="news-info-text">
				<?php echo $info['content'];?>
			</div>

			<div class="news-info-bottom">
				<div class="fl news-info-list">
				
					<div>上一篇：<?php if(isset($updown['next']['title'])):?>
										<a href="<?php echo site_url('news/case_info/'.$updown['next']['id']); ?>"><?php echo $updown['next']['title'];?></a>
										<?php else:?><?php echo "没有上一篇...";?><?php endif;?>
					</div>
					
					
					<div>下一篇：<?php if(isset($updown['prev']['title'])):?>
										<a href="<?php echo site_url('news/case_info/'.$updown['prev']['id']); ?>"><?php echo $updown['prev']['title'];?></a>
										<?php else:?><?php echo "没有下一篇...";?><?php endif;?>
					</div>
				</div>
				<div class="fr news-inf-back">
					<a href="<?php echo site_url('news/index'); ?>">返回列表</a>
				</div>
			</div>
		</div>

	</div>
<?php 
    else:
    header("Location:".site_url('news/index'));
    exit;
?>
<?php endif;?>

    <?php include_once VIEWS.'inc/footer.php'; ?>
<?php
	echo static_file('web/js/main.js');
?>
</body>
</html>